<!--<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"-->
<!--        "http://www.w3.org/TR/html4/loose.dtd"-->
<!--        >-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml11-thymeleaf-4.dtd">
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Title</title>
    <meta charset="UTF-8">
</head>
<body>
<div>
    <span th:text="|我的名字:${user.username}|"></span>
</div>

<div>
    <span th:if="${user.age} < 24 ">小鲜肉</span>
    <span th:unless="${user.age} < 24">老腊肉</span>
</div>
<div>
    <span th:text="${list[2]}"></span>
</div>
<div>
    <table>
        <tr th:each="name,stat:${list}">
            <td th:text="${name}"></td>
            <td th:text="${stat.index}"></td>
            <td th:text="${stat.count}"></td>
            <td th:text="${stat.odd}"></td>
            <td th:text="${stat.last}"></td>
            <td>
                <a th:href="@{/user/detail(id=${stat.count})}">详情</a>
            </td>

        </tr>
    </table>
</div>
</body>
</html>